package cn.codingjc.aurora.framework.schedule.core;

import java.util.concurrent.ScheduledFuture;

/**
 * @auth: coding_jc
 * @date: 2023/11/1 22:23
 * @desc:
 */
public class ScheduledTask {

    volatile ScheduledFuture<?> future;

    public void cancel(){
        ScheduledFuture<?> future = this.future;
        if (future != null) {
            future.cancel(true);
        }
    }
}

